package com.wjh.mongodbdemo.dao;

import com.wjh.mongodbdemo.entity.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @auther wjh
 * @date 2021/5/19 14:45
 */
public interface CommentRepository extends MongoRepository<Comment, String> {
    //根据父id，查询子评论的分页列表
    Page<Comment> findByParentid(String parentid, Pageable pageable);
}
